<!--<pre>--><?php //var_dump($listProduct) ?><!--</pre>-->

<h3>
    <?php echo $this->Session->flash(); ?>
</h3>
<table class="table table-striped">
    <tr>
        <th>STT</th>
        <th>Tài khoản</th>
        <th>Email</th>
        <th>So Dien Thoai</th>
        <th>Nhóm</th>
        <th>Edit/Reset/Delete</th>
    </tr>
    <?php foreach ($listUser as $dt):?>

        <tr>
            <td><?php echo $dt['User']['id'] ?> </td>
            <td><?php echo $this->Html->link($dt['User']['username'],array('action'=>'edit'.'/'.$dt['User']['id'])) ?> </td>
            <td><?php echo $dt['User']['email'] ?> </td>
            <td><?php echo $dt['User']['phonenumber'] ?> </td>
            <td><?php echo $dt['Role']['name'] ?> </td>
            <td>
                <?php
                echo $this->Html->link('Add',array('action'=>'useradd'));
                echo ' / ';
                echo $this->Html->link('Edit',array('action'=>'useredit'.'/'.$dt['User']['id']));
                echo ' / ';
                echo $this->Html->link('Delete',array('action'=>'userdelete'.'/'.$dt['User']['id']))
                ?> </td>

        </tr>
    <?php endforeach; ?>
</table>
